//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.dflc.utils;

import java.util.List;

public class PageEntityBuilder<T extends List> {
    private final PageEntity<T> entity = new PageEntity();

    private PageEntityBuilder() {
    }

    public static PageEntityBuilder builder() {
        return new PageEntityBuilder();
    }

    public PageEntityBuilder currentPage(Long page) {
        this.entity.setCurrentPage(page);
        return this;
    }

    public PageEntityBuilder pageSize(Long pageSize) {
        this.entity.setPageSize(pageSize);
        return this;
    }

    public PageEntityBuilder totalCount(Long totalCount) {
        this.entity.setTotalCount(totalCount);
        return this;
    }

    public PageEntityBuilder totalPage(Long totalPage) {
        this.entity.setTotalPage(totalPage);
        return this;
    }

    public PageEntityBuilder data(T data) {
        this.entity.setData(data);
        return this;
    }

    public PageEntity<T> build() {
        return this.entity;
    }
}
